package com.iespring.bean.app.coupon.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Auth: 杨宇健
 * Time: 2023/1/1 19:08
 * Description:
 **/
@NoArgsConstructor
@Data
public class WxCouponPageVo {
    /**
     * id : 217
     * cid : 96
     * name : 劳斯莱斯库里南五元代金券
     * desc : 只为最尊贵的你
     * tag : 劳斯莱斯库里南五元代金券
     * min : 6100000.0
     * discount : 5.0E7
     * startTime : 2022-12-31 12:19:01
     * endTime : 2023-01-30 12:19:01
     * available : false
     */

    private int id;
    private int cid;
    private String name;
    private String desc;
    private String tag;
    private BigDecimal min;
    private BigDecimal discount;
    @DateTimeFormat(pattern = "yy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date startTime;
    @DateTimeFormat(pattern = "yy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date endTime;
    private boolean available;
}
